//
//  Util.h
//  QBPatient
//
//  Created by 阳光 on 16/8/3.
//  Copyright © 2016年 QB. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Util : NSObject

+(BOOL)saveObjectToUserDefault:(id)object forKey:(NSString *)key;

+(id)getUserDefaultObjectForKey:(NSString *)key;


///根据编码 修改药品
+ (NSString *)changCodeToName:(NSString *)code;
///根据编码 修改药品
+ (NSString *)changDrugCodeToName:(NSString *)code;
///根据编码 修改项目名称 反向
+ (NSString *)changHowMuchCodeToName:(NSString *)code;

//根据编码 修改药品 反向
+ (NSString *)changNameToCode:(NSString *)name;

+ (NSString *)changNameToDrugCode:(NSString *)name;
//根据编码 修改药品数量 反向
+ (NSString *)changNameToHowMuchCode:(NSString *)name;




// 时间戳转时间正常显示
+(NSString *)getConvertToFormalDateByTimeStamp:(NSString *)timeStamp;

// 时间戳转时间
+(NSString *)getConvertToDateByTimeStamp:(NSString *)timeStamp;

// 时间转时间戳
+(NSString *)getTimeStampByDate:(NSString *)timeStr;

// 时间正常显示转时间戳
+(NSString *)getTimeStampByFormalDate:(NSString *)timeStr;

//获取当前时间戳
+(NSString *)getNowTime;

//获取今日结束时间戳
+(NSString *)getTodayEndTime;

@end


